﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UsersLabelPrint.DAL
{
    public class PrintHistory
    {
        public int Id { get; set; }

        [Required]
        public int LabelId { get; set; }

        [Required]
        public int PersonId { get; set; }

        public string BatchNumber { get; set; }

        [Required]
        public int DalPrinterId { get; set; }

        public int Sn { get; set; }

        [Required]
        public int PrintCount { get; set; }

        public DateTime LabelDate { get; set; }
        public DateTime PrintDate { get; set; }

        [ForeignKey("LabelId")]
        public virtual Label Label { get; set; }

        [ForeignKey("PersonId")]
        public virtual Person Person { get; set; }

        [ForeignKey("DalPrinterId")]
        public virtual DalPrinter DalPrinter { get; set; }
    }
}
